/*************************************************
* Title：TinyToolKit
* Author：Opportunity 
* Discribe：定义有限状态机状态的基类
* CreateTime：2020-04-05 21:28:43
* Version：1.0
* Modify Recoder：
*************************************************/
namespace TinyToolKit.FSM
{
    public abstract class FsmState<T> where T : class
    {
        protected IFsmSystem<T> FSM; 

        protected internal void SetFsmSystem(IFsmSystem<T> fsm) 
        {
            this.FSM = fsm;
        }

        protected internal virtual void OnInit(){}
        protected internal virtual void OnEnter() {}
        protected internal virtual void OnAct(){}
        protected internal virtual void OnExit(){}
        protected internal virtual void OnDestroy(){}
    }
}
